package com.wfg.common;


/**
 * @author wufagang
 * @description
 * @date 2023年05月10日 08:15
 */
public class ProtoaclFactory {


    public static Protocal getProtocol(){
        String name = System.getProperty("protocalName");
        if(name == null || name.equals("")) name = "http";
        switch (name){
            case "http":
                return new HttpProtoacl();
            case "dubbo":
                return new DubboProtocal();
            default:
                break;
        }
        return new HttpProtoacl();
    }
}
